var picFolder = Folder("D:\\code\\tmpPics\\")

var fileList = picFolder.getFiles();

for(var i = 0; i < fileList.length; i++) {
    if (fileList[i] instanceof File) {
        open(fileList[i]);
    }
}